package com.tjmc.tiomscore.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TiSubnetExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TiSubnetExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNativenameIsNull() {
            addCriterion("nativename is null");
            return (Criteria) this;
        }

        public Criteria andNativenameIsNotNull() {
            addCriterion("nativename is not null");
            return (Criteria) this;
        }

        public Criteria andNativenameEqualTo(String value) {
            addCriterion("nativename =", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotEqualTo(String value) {
            addCriterion("nativename <>", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameGreaterThan(String value) {
            addCriterion("nativename >", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameGreaterThanOrEqualTo(String value) {
            addCriterion("nativename >=", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLessThan(String value) {
            addCriterion("nativename <", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLessThanOrEqualTo(String value) {
            addCriterion("nativename <=", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameLike(String value) {
            addCriterion("nativename like", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotLike(String value) {
            addCriterion("nativename not like", value, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameIn(List<String> values) {
            addCriterion("nativename in", values, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotIn(List<String> values) {
            addCriterion("nativename not in", values, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameBetween(String value1, String value2) {
            addCriterion("nativename between", value1, value2, "nativename");
            return (Criteria) this;
        }

        public Criteria andNativenameNotBetween(String value1, String value2) {
            addCriterion("nativename not between", value1, value2, "nativename");
            return (Criteria) this;
        }

        public Criteria andLayerIsNull() {
            addCriterion("layer is null");
            return (Criteria) this;
        }

        public Criteria andLayerIsNotNull() {
            addCriterion("layer is not null");
            return (Criteria) this;
        }

        public Criteria andLayerEqualTo(Byte value) {
            addCriterion("layer =", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotEqualTo(Byte value) {
            addCriterion("layer <>", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerGreaterThan(Byte value) {
            addCriterion("layer >", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerGreaterThanOrEqualTo(Byte value) {
            addCriterion("layer >=", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerLessThan(Byte value) {
            addCriterion("layer <", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerLessThanOrEqualTo(Byte value) {
            addCriterion("layer <=", value, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerIn(List<Byte> values) {
            addCriterion("layer in", values, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotIn(List<Byte> values) {
            addCriterion("layer not in", values, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerBetween(Byte value1, Byte value2) {
            addCriterion("layer between", value1, value2, "layer");
            return (Criteria) this;
        }

        public Criteria andLayerNotBetween(Byte value1, Byte value2) {
            addCriterion("layer not between", value1, value2, "layer");
            return (Criteria) this;
        }

        public Criteria andDistrictIdIsNull() {
            addCriterion("district_id is null");
            return (Criteria) this;
        }

        public Criteria andDistrictIdIsNotNull() {
            addCriterion("district_id is not null");
            return (Criteria) this;
        }

        public Criteria andDistrictIdEqualTo(Integer value) {
            addCriterion("district_id =", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdNotEqualTo(Integer value) {
            addCriterion("district_id <>", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdGreaterThan(Integer value) {
            addCriterion("district_id >", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("district_id >=", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdLessThan(Integer value) {
            addCriterion("district_id <", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdLessThanOrEqualTo(Integer value) {
            addCriterion("district_id <=", value, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdIn(List<Integer> values) {
            addCriterion("district_id in", values, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdNotIn(List<Integer> values) {
            addCriterion("district_id not in", values, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdBetween(Integer value1, Integer value2) {
            addCriterion("district_id between", value1, value2, "districtId");
            return (Criteria) this;
        }

        public Criteria andDistrictIdNotBetween(Integer value1, Integer value2) {
            addCriterion("district_id not between", value1, value2, "districtId");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Long value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Long value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Long value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Long value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Long value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Long value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Long> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Long> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Long value1, Long value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Long value1, Long value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andRmuidIsNull() {
            addCriterion("rmuid is null");
            return (Criteria) this;
        }

        public Criteria andRmuidIsNotNull() {
            addCriterion("rmuid is not null");
            return (Criteria) this;
        }

        public Criteria andRmuidEqualTo(String value) {
            addCriterion("rmuid =", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidNotEqualTo(String value) {
            addCriterion("rmuid <>", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidGreaterThan(String value) {
            addCriterion("rmuid >", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidGreaterThanOrEqualTo(String value) {
            addCriterion("rmuid >=", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidLessThan(String value) {
            addCriterion("rmuid <", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidLessThanOrEqualTo(String value) {
            addCriterion("rmuid <=", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidLike(String value) {
            addCriterion("rmuid like", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidNotLike(String value) {
            addCriterion("rmuid not like", value, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidIn(List<String> values) {
            addCriterion("rmuid in", values, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidNotIn(List<String> values) {
            addCriterion("rmuid not in", values, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidBetween(String value1, String value2) {
            addCriterion("rmuid between", value1, value2, "rmuid");
            return (Criteria) this;
        }

        public Criteria andRmuidNotBetween(String value1, String value2) {
            addCriterion("rmuid not between", value1, value2, "rmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidIsNull() {
            addCriterion("parentsubnetrmuid is null");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidIsNotNull() {
            addCriterion("parentsubnetrmuid is not null");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidEqualTo(String value) {
            addCriterion("parentsubnetrmuid =", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidNotEqualTo(String value) {
            addCriterion("parentsubnetrmuid <>", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidGreaterThan(String value) {
            addCriterion("parentsubnetrmuid >", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidGreaterThanOrEqualTo(String value) {
            addCriterion("parentsubnetrmuid >=", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidLessThan(String value) {
            addCriterion("parentsubnetrmuid <", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidLessThanOrEqualTo(String value) {
            addCriterion("parentsubnetrmuid <=", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidLike(String value) {
            addCriterion("parentsubnetrmuid like", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidNotLike(String value) {
            addCriterion("parentsubnetrmuid not like", value, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidIn(List<String> values) {
            addCriterion("parentsubnetrmuid in", values, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidNotIn(List<String> values) {
            addCriterion("parentsubnetrmuid not in", values, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidBetween(String value1, String value2) {
            addCriterion("parentsubnetrmuid between", value1, value2, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andParentsubnetrmuidNotBetween(String value1, String value2) {
            addCriterion("parentsubnetrmuid not between", value1, value2, "parentsubnetrmuid");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdIsNull() {
            addCriterion("tran_ptn_sbn_id is null");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdIsNotNull() {
            addCriterion("tran_ptn_sbn_id is not null");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdEqualTo(Long value) {
            addCriterion("tran_ptn_sbn_id =", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdNotEqualTo(Long value) {
            addCriterion("tran_ptn_sbn_id <>", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdGreaterThan(Long value) {
            addCriterion("tran_ptn_sbn_id >", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdGreaterThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_sbn_id >=", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdLessThan(Long value) {
            addCriterion("tran_ptn_sbn_id <", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdLessThanOrEqualTo(Long value) {
            addCriterion("tran_ptn_sbn_id <=", value, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdIn(List<Long> values) {
            addCriterion("tran_ptn_sbn_id in", values, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdNotIn(List<Long> values) {
            addCriterion("tran_ptn_sbn_id not in", values, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_sbn_id between", value1, value2, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andTranPtnSbnIdNotBetween(Long value1, Long value2) {
            addCriterion("tran_ptn_sbn_id not between", value1, value2, "tranPtnSbnId");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}